﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CMTVision.Widgets
{
    public class CMTRadEditor:Telerik.Web.UI.RadEditor
    {

        #region Ctor
        public CMTRadEditor()
            : base()
        { 

        }
        #endregion

        #region Properties

        public bool NeedNoMinHeight
        {
            get;
            set;
        }

        #endregion


        #region Override

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            if (NeedNoMinHeight)
            {
                OnClientLoad = "function(editor,args){ $(editor._contentAreaElement).height($(editor._element).height()-3);}";
            }
        }

        #endregion
    }
}